﻿using BW.Model;
using Dto;

namespace BW.IBLL
{
    public interface IBaseBLL
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model">对象</param>
        /// <returns>受影响的行数</returns>
        Task<int> tianjia(UserModel model);
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        MyDto xisnshi(int index,int size,string uname,int? tid);
        /// <summary>
        /// 单个上架下架
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<int> UpdateStart(int id);
        /// <summary>
        /// 查所有商品信息
        /// </summary>
        /// <returns></returns>
         List<UserTypeModel> bang();
        /// <summary>
        /// 返填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public UserModel GetEmployeeById(int id);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="employee"></param>
        /// <returns></returns>
        public Task<int> UpdateEmployee(UserModel employee);
    }
}
